<div class="bjui-pageHeader">
    <form id="pagerForm" data-toggle="ajaxsearch" action="{:url('Admin/index')}" method="post">
        <input type="hidden" name="pageSize" value="{$pageSize}">
        <input type="hidden" name="pageCurrent" value="{$pageCurrent}">
        <input type="hidden" name="orderField" value="{$orderField}">
        <input type="hidden" name="orderDirection" value="{$orderDirection}">
        <div class="bjui-searchBar">
            <label>AID：</label><input type="text" id="customNo" value="{$keys.aid|default=''}" name="keys[aid]" class="form-control" size="8">&nbsp;
            <label>帐号：</label><input type="text" value="{$keys.username|default=''}" name="keys[username]" class="form-control" size="10">&nbsp;
            <label>昵称：</label><input type="text" value="{$keys.nickname|default=''}" name="keys[nickname]" class="form-control" size="10">&nbsp;
            <label>备注：</label><input type="text" value="{$keys.desc|default=''}" name="keys[desc]" size="10">&nbsp;
            <label>使用状态:</label>
            <select name="keys[status]" data-toggle="selectpicker" data-width="60">
                <option value="">全部</option>
                <option value="1" {eq name="$keys.status|default=''" value="1"}selected{/eq}>正常</option>
                <option value="0" {eq name="$keys.status|default=''" value="0"}selected{/eq}>冻结</option>
            </select>&nbsp;
            <button type="submit" class="btn-default" data-icon="search">查询</button>&nbsp;
            {if authcheck('Admin/Admin/add')}
                <a class="btn btn-default" href="{:url('Admin/add')}" data-id="add_Admin" data-toggle="dialog" data-mask="true" data-maxable="false" data-width="520" data-height="410" data-icon="plus">新增</a>
            {/if}
            <div class="pull-right">
                <div class="btn-group">
                    <button type="button" class="btn-default dropdown-toggle" data-toggle="dropdown" data-icon="copy">复选框-批量操作<span class="caret"></span></button>
                    <ul class="dropdown-menu right" role="menu">
                        {if authcheck('Admin/Admin/del')}
                            <li><a href="{:url('Admin/del')}" data-toggle="doajaxchecked" data-confirm-msg="确定要删除选中项吗？" data-reload="false" data-idname="delids" data-group="ids">删除选中</a></li>
                        {/if}
                    </ul>
                </div>
            </div>
        </div>
    </form>
</div>
<div class="bjui-pageContent tableContent">
    <table class="table table-bordered table-hover table-striped table-top" data-selected-multi="false">
        <thead>
            <tr>
            {volist name="thead" id="val"}
                <th {neq name="$key" value="group"}data-order-field="{$key}"{/neq}>{$val}</th>
            {/volist}
                <th width="26"><input type="checkbox" class="checkboxCtrl" data-group="ids" data-toggle="icheck"></th>
                <th width="120">操作</th>
            </tr>
        </thead>
        <tbody>
            {volist name="list" id="row"}
            <tr data-id="{$row.aid}">
                {volist name="thead" id="val"}
                <td>{$row[$key]}</td>
                {/volist}
                <td><input type="checkbox" name="ids" data-toggle="icheck" value="{$row.aid}"></td>
                <td>
                    {if authcheck('Admin/Admin/edit')}
                        <a href="{:url('Admin/edit',['key'=>'aid','val'=>$row['aid']])}" class="btn btn-green" data-toggle="dialog" data-id="edit_Admin" data-maxable="false" data-mask="true" data-width="520" data-height="410">修改</a>
                    {/if}
                    {if authcheck('Admin/Admin/del')}
                        <a href="{:url('Admin/del',['key'=>'aid','val'=>$row['aid']])}" class="btn btn-red" data-reload="false" data-toggle="doajax" data-confirm-msg="确定要删除该行信息吗？">删除</a>
                    {/if}
                </td>
            </tr>
            {/volist}
        </tbody>
    </table>
</div>
<div class="bjui-pageFooter">
    <div class="pages">
        <span>每页&nbsp;</span>
        <div class="selectPagesize">
            <select data-toggle="selectpicker" data-width="50" data-toggle-change="changepagesize">
                <option value="20">20</option>
                <option value="40">40</option>
                <option value="60">60</option>
            </select>
        </div>
        <span>&nbsp;条，共 {$totalCount} 条</span>
    </div>
    <div class="pagination-box" data-toggle="pagination" data-total="{$totalCount}" data-page-size="20" data-page-current="{$pageCurrent}">
    </div>
</div>